package com.felix.common;


import lombok.Data;

@Data
public class ResultBean {

    public static final int SUCCESS = 1;
    public static final int FAIL = 0;

    private String msg = "success";
    private int code = SUCCESS;
    private Object data;

    public ResultBean() {
        super();
    }

    public ResultBean(Object data) {
        super();
        this.data = data;
    }

    public ResultBean(Throwable e) {
        super();
        this.msg = e.toString();
        this.code = FAIL;
    }

}
